class login_basedata:
    def __init__(self):
        self.login_url="http://ihrm-test.itheima.net/api/sys/login"

    def login(self,session,mobile,password):
        data={
            "mobile":mobile,
            "password":password
        }
        return session.post(url=self.login_url,json=data)

